package forces;

import masses.Mass;


public class Gravity extends Force {

    /**
     * @param direction direction of gravity, in degrees
     * @param magnitude magnitude of gravity, in pixels
     */

    // will have to be applied to all masses
    public Gravity (double direction, double magnitude) {
        super(direction, magnitude);
    }

    public Gravity (Mass mass) {
        Force result = new Force(90, 1);
        result.scale(1.0 / mass.getMyMass());
    }

}
